package com.zc.basic.infra.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zc.basic.domain.dto.DeptDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DeptDtoMapper extends BaseMapper<DeptDto> {

    /**
     * @param id
     * @return
     * @description 查询机构及其下属机构信息
     */
    List<DeptDto> queryDeptBranches(Integer id);

    List<DeptDto> queryDeptTree();


}
